<?php
session_start();//开启本地存储；
define('ROOT_PATH'  , __DIR__.'/../../');
define('VENDOR_PATH', __DIR__.'/../../vendor/');
define('APP_PATH'   , __DIR__.'/../../App/');
define('PUBLIC_PATH', __DIR__.'/../../public/');

require VENDOR_PATH.'autoload.php';
require APP_PATH.'Config/config.php';
$app=new\Slim\App($config);
$container=$app->getContainer();
require_once APP_PATH.'Config/database.php';
require_once APP_PATH.'Config/container.php';
require APP_PATH.'routes.php';
return $app;

